<%--@elvariable id="CURRENT_USER_MENU" type="com.doupi.partner.manager.authenticator.filter.CaptchaAuthenticationFilter.onLoginSuccess"--%>
<%--@elvariable id="biz" type="com.doupi.partner.op.interceptor.OpFilter"--%>
<%--@elvariable id="webRoot" type="com.doupi.partner.op.interceptor.OpFilter"--%>
<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="tags.jsp" %>

<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
        <ul class="am-list admin-sidebar-list">
            <li>
                <a href="${webRoot}/admin_index">
                    <span class="am-icon-home"></span>
                    首页
                </a>
            </li>
            <c:forEach items="${CURRENT_USER_MENU }" var="parent"> <c:if test="${parent.url == '' }">
                <li class="admin-parent current">
                    <a class="am-cf" data-am-collapse="{target: '#collapse-${util:split(parent.code,':')[0] }'}">
                            ${parent.name }
                        <span class="am-icon-angle-right am-fr am-margin-right"></span>
                    </a>
                    <ul class="am-list am-collapse admin-sidebar-sub <c:if
                    test="${util:split(parent.code,':')[0] ==  biz}">am-in</c:if>"
                            id="collapse-${util:split(parent.code,':')[0] }">
                        <c:forEach items="${CURRENT_USER_MENU }" var="child">
                            <c:if test="${child.parentId == parent.id }">
                                <li>
                                    <a href="${webRoot}/${child.url}" class="am-cf">${child.name }</a>
                                </li>
                            </c:if> </c:forEach>
                    </ul>
                </li>
            </c:if> </c:forEach>
        </ul>

        <div class="am-panel am-panel-default admin-sidebar-panel">
            <div class="am-panel-bd">
                <p>
                    <span class="am-icon-bookmark"></span>
                    公告
                </p>
                <p>合伙人1.0版本，问题咨询：
                    <a href="tel:18512150708">18512150708</a>
                </p>
            </div>
        </div>
    </div>
</div>
<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>